//package com.wangyadong.hobby.dubbo.api.api;
//
//import com.alibaba.dubbo.cache.Cache;
//import com.alibaba.dubbo.common.URL;
//import com.alibaba.dubbo.common.extension.ExtensionLoader;
//
//public class CacheFactory$Adaptive implements com.alibaba.dubbo.cache.CacheFactory {
//    public com.alibaba.dubbo.cache.Cache getCache(com.alibaba.dubbo.common.URL arg0, com.alibaba.dubbo.rpc.Invocation arg1) {
//        if (arg0 == null) throw new IllegalArgumentException("url == null");
//        com.alibaba.dubbo.common.URL url = arg0;
//        if (arg1 == null) throw new IllegalArgumentException("invocation == null");
//        String methodName = arg1.getMethodName();
//        String extName = url.getMethodParameter(methodName, "cache", "lru");
//        if (extName == null)
//            throw new IllegalStateException("Fail to get extension(com.alibaba.dubbo.cache.CacheFactory) name from url(" + url.toString() + ") use keys([cache])");
//        com.alibaba.dubbo.cache.CacheFactory extension = (com.alibaba.dubbo.cache.CacheFactory) ExtensionLoader.getExtensionLoader(com.alibaba.dubbo.cache.CacheFactory.class).getExtension(extName);
//        return extension.getCache(arg0);
//    }
//
//    @Override
//    public Cache getCache(URL url) {
//        return null;
//    }
//}